package com.nio.model;

import javax.persistence.Column;
import javax.persistence.Id;

public class Person {
    @Id
    private Integer id;

    private Integer age;

    private String name;

    /**
     * 住址
     */
    @Column(name = "work_address")
    private String workAddress;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取住址
     *
     * @return work_address - 住址
     */
    public String getWorkAddress() {
        return workAddress;
    }

    /**
     * 设置住址
     *
     * @param workAddress 住址
     */
    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }
}